<template>

    <el-container>
      <el-aside width="200px">
        <div class="logo">xxx</div>
        <!-- 菜单 -->
          <!-- @open="handleOpen"
          @close="handleClose" -->
          <!-- default-active="/table" -->
        <el-menu
          router
          :default-active="$route.path"

          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b">

          <el-menu-item index="/table">
            <i class="el-icon-watch"></i>
            <span slot="title">表格</span>
          </el-menu-item>

          <el-menu-item index="/tree">
            <i class="el-icon-menu"></i>
            <span slot="title">树</span>
          </el-menu-item>
        </el-menu>

      </el-aside>

      <el-container>
        <el-header>Header</el-header>
        <el-main>
          <!-- 二级路由出口 -->
          <router-view></router-view>
        </el-main>
      </el-container>
  </el-container>

</template>

<style>

  html, body, #app, .el-container{
    height: 100%;
  }
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;

  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;

  }

  body > .el-container {
    margin-bottom: 40px;
  }
</style>
